<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="__ADMIN__/cache/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
		<header class="larry-personal-tit">
			<span>编辑角色组</span>
		</header><!-- /header -->
		<div class="larry-personal-body clearfix">
			<form class="layui-form col-lg-10" action="/admin/auth/group_edit" method="post">
				<input type="hidden" name="id" value="{$group_data['id']}">
				<div class="layui-form-item">
					<label class="layui-form-label">角色组名</label>
					<div class="layui-input-block">
						<input type="text" name="title"  autocomplete="off" value="{$group_data['title']}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">选择规则</label>
					<div class="layui-input-block">
						<foreach name="rule_list" item="rules">
							<div class="layui-collapse">
							  <div class="layui-colla-item">
							    <h4 class="layui-colla-title">{$key}</h4>
							    <div class="layui-colla-content">
							    	<volist name="rules" id="rulelist">
							    		<in name="rulelist['id']" value="$group_rule">
							    			<input type="checkbox" name="rules[{$rulelist['id']}]" title="{$rulelist['title']}" checked="">
							    		<else/>
							    			<input type="checkbox" name="rules[{$rulelist['id']}]" title="{$rulelist['title']}">
							    		</in>
							    	</volist>
							    </div>
							  </div>
							</div>
						</foreach>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">是否启用</label>
					<div class="layui-input-block">
						<if condition="($group_data['status'] eq 1)">
							<input type="radio" name="status" value="1" title="是" checked=""><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>是</span></div>
							<input type="radio" name="status" value="0" title="否"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>否</span></div>
						<else />
							<input type="radio" name="status" value="1" title="是"><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>是</span></div>
							<input type="radio" name="status" value="0" title="否" checked=""><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>否</span></div>
						</if>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</section>
<script type="text/javascript" src="__ADMIN__/cache/layui.js"></script>
<script type="text/javascript">
	layui.use(['form','element', 'layer'],function(){
         var form = layui.form();
         var element = layui.element();
  		 var layer = layui.layer;
	});
</script>
</body>
</html>